﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.OutsourceProcession.EntityFrameworkCore
{
	public static class OutsourceProcessionDbContextOptionsConfigurer
	{
		public static void Configure(
		   DbContextOptionsBuilder<OutsourceProcessionDbContext> dbContextOptions,
		   string connectionString
	   )
		{
			/* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
			dbContextOptions.UseSqlServer(connectionString);
		}

		public static void Configure(
			DbContextOptionsBuilder<OutsourceProcessionDbContext> dbContextOptions,
			DbConnection connection
		)
		{
			/* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
			dbContextOptions.UseSqlServer(connection);
		}
	}
}